{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            {include file="public/tophead" /}
            <form class="form-horizontal" method="post">
                <div class="tabs-container">
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a data-toggle="tab" href="#tab-1" aria-expanded="true">站点设置</a>
                    </li>



                </ul>
                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                        <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站名称：</label>
                                <div class="col-sm-9">
                                    <input type="text" name="site_name" value="{:sysConfig('site_name')}"  required="required" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">备案信息：</label>
                                <div class="col-sm-9">
                                    <input type="text" name="beian" value="{:sysConfig('beian')}" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">文件储存：</label>
                                <div class="col-sm-9">
                                    <div class="radio i-checks">
                                        <label><input type="radio" value="local" name="file_store" {if sysConfig('file_store') eq '' or sysConfig('file_store') eq 'local'}checked="checked"{/if} /> 此服务器</label>
                                        <label><input type="radio" value="oss" name="file_store" {if sysConfig('file_store') eq 'oss'}checked="checked"{/if} /> 阿里OSS</label>
                                        <!--<label><input type="radio" value="seven_csattle" name="file_store" {if sysConfig('file_store') eq 'seven_csattle'}checked="checked"{/if} /> 七牛</label>-->
                                    </div>
                                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 使用第三方储存请配置，缺失配置将使用本地储存</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">后台头像：</label>
                                <div class="col-sm-9">
                                    <div class="input-group">
                                        <input type="hidden"  name="img" id="image" value="" />
                                        <span class="input-group-btn">
                                            <button type="button" class="btn btn-primary" id="upload">上传头像</button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                   



                </div>
            </div>
            </form>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/iCheck/icheck.min.js"}
{load href="__STYLE__/admin/plugins/iCheck/custom.css"}
<script type="text/javascript">
$(document).ready(function(){
    $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    });
});
$("#upload").click(function(){
    layer.open({
        type: 2,
        title: '上传图片',
        shadeClose: true,
        shade: 0.2,
        area: ['70%', '60%'],
        skin:'shangchuantup',
        content: "{:url('index/upload', ['type' => 'admin'])}",
        shift:-1,
        scrollbar: false,
        moveType: 1,
        moveOut: true
    });
});
</script>
{include file="public/bottom" /}